﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>浏览器兼容性</title>
<style>
	#box1{ width:200px; height:100px; border:1px black solid; background:red; }
	#box2{ width:50px; height:50px; border:1px black solid; 
		background:blue; float:left; padding:0px 10px 0px 10px; 
		margin-left:20px; _display:inline; }
</style>
</head>
<body>
<div id="box1">
	<div id="box2">子元素</div>
</div>
</body>
</html>